Optimal. Leaf size=135 \[ \frac {5}{16} a^4 c^2 x \sqrt {a+b x} \sqrt {a c-b c x}+\frac {5}{24} a^2 c x (a+b x)^{3/2} (a c-b c x)^{3/2}+\frac {1}{6} x (a+b x)^{5/2} (a c-b c x)^{5/2}+\frac {5 a^6 c^{5/2} \tan ^{-1}\left (\frac {\sqrt {c} \sqrt {a+b x}}{\sqrt {c (a-b x)}}\right )}{8 b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 135, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {38, 65, 223,
209} \begin {gather*} \frac {5 a^6 c^{5/2} \tan ^{-1}\left (\frac {\sqrt {c} \sqrt {a+b x}}{\sqrt {c (a-b x)}}\right )}{8 b}+\frac {5}{16} a^4 c^2 x \sqrt {a+b x} \sqrt {a c-b c x}+\frac {5}{24} a^2 c x (a+b x)^{3/2} (a c-b c x)^{3/2}+\frac {1}{6} x (a+b x)^{5/2} (a c-b c x)^{5/2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 38
Rule 65
Rule 209
Rule 223
Rubi steps
\begin {align*} \int (a+b x)^{5/2} (a c-b c x)^{5/2} \, dx &=\frac {1}{6} x (a+b x)^{5/2} (a c-b c x)^{5/2}+\frac {1}{6} \left (5 a^2 c\right ) \int (a+b x)^{3/2} (a c-b c x)^{3/2} \, dx\\ &=\frac {5}{24} a^2 c x (a+b x)^{3/2} (a c-b c x)^{3/2}+\frac {1}{6} x (a+b x)^{5/2} (a c-b c x)^{5/2}+\frac {1}{8} \left (5 a^4 c^2\right ) \int \sqrt {a+b x} \sqrt {a c-b c x} \, dx\\ &=\frac {5}{16} a^4 c^2 x \sqrt {a+b x} \sqrt {a c-b c x}+\frac {5}{24} a^2 c x (a+b x)^{3/2} (a c-b c x)^{3/2}+\frac {1}{6} x (a+b x)^{5/2} (a c-b c x)^{5/2}+\frac {1}{16} \left (5 a^6 c^3\right ) \int \frac {1}{\sqrt {a+b x} \sqrt {a c-b c x}} \, dx\\ &=\frac {5}{16} a^4 c^2 x \sqrt {a+b x} \sqrt {a c-b c x}+\frac {5}{24} a^2 c x (a+b x)^{3/2} (a c-b c x)^{3/2}+\frac {1}{6} x (a+b x)^{5/2} (a c-b c x)^{5/2}+\frac {\left (5 a^6 c^3\right ) \text {Subst}\left (\int \frac {1}{\sqrt {2 a c-c x^2}} \, dx,x,\sqrt {a+b x}\right )}{8 b}\\ &=\frac {5}{16} a^4 c^2 x \sqrt {a+b x} \sqrt {a c-b c x}+\frac {5}{24} a^2 c x (a+b x)^{3/2} (a c-b c x)^{3/2}+\frac {1}{6} x (a+b x)^{5/2} (a c-b c x)^{5/2}+\frac {\left (5 a^6 c^3\right ) \text {Subst}\left (\int \frac {1}{1+c x^2} \, dx,x,\frac {\sqrt {a+b x}}{\sqrt {c (a-b x)}}\right )}{8 b}\\ &=\frac {5}{16} a^4 c^2 x \sqrt {a+b x} \sqrt {a c-b c x}+\frac {5}{24} a^2 c x (a+b x)^{3/2} (a c-b c x)^{3/2}+\frac {1}{6} x (a+b x)^{5/2} (a c-b c x)^{5/2}+\frac {5 a^6 c^{5/2} \tan ^{-1}\left (\frac {\sqrt {c} \sqrt {a+b x}}{\sqrt {c (a-b x)}}\right )}{8 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.17, size = 103, normalized size = 0.76 \begin {gather*} \frac {(c (a-b x))^{5/2} \left (b x \sqrt {a-b x} \sqrt {a+b x} \left (33 a^4-26 a^2 b^2 x^2+8 b^4 x^4\right )+30 a^6 \tan ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt {a-b x}}\right )\right )}{48 b (a-b x)^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(241\) vs.
\(2(107)=214\).
time = 0.16, size = 242, normalized size = 1.79
method | result | size |
risch | \(\frac {x \left (8 b^{4} x^{4}-26 a^{2} b^{2} x^{2}+33 a^{4}\right ) \sqrt {b x +a}\, \left (-b x +a \right ) c^{3}}{48 \sqrt {-c \left (b x -a \right )}}+\frac {5 a^{6} \arctan \left (\frac {\sqrt {b^{2} c}\, x}{\sqrt {-b^{2} c \,x^{2}+a^{2} c}}\right ) \sqrt {-\left (b x +a \right ) c \left (b x -a \right )}\, c^{3}}{16 \sqrt {b^{2} c}\, \sqrt {b x +a}\, \sqrt {-c \left (b x -a \right )}}\) | \(136\) |
default | \(-\frac {\left (b x +a \right )^{\frac {5}{2}} \left (-b c x +a c \right )^{\frac {7}{2}}}{6 b c}+\frac {5 a \left (-\frac {\left (b x +a \right )^{\frac {3}{2}} \left (-b c x +a c \right )^{\frac {7}{2}}}{5 b c}+\frac {3 a \left (-\frac {\sqrt {b x +a}\, \left (-b c x +a c \right )^{\frac {7}{2}}}{4 b c}+\frac {a \left (\frac {\left (-b c x +a c \right )^{\frac {5}{2}} \sqrt {b x +a}}{3 b}+\frac {5 a c \left (\frac {\left (-b c x +a c \right )^{\frac {3}{2}} \sqrt {b x +a}}{2 b}+\frac {3 a c \left (\frac {\sqrt {-b c x +a c}\, \sqrt {b x +a}}{b}+\frac {a c \sqrt {\left (b x +a \right ) \left (-b c x +a c \right )}\, \arctan \left (\frac {\sqrt {b^{2} c}\, x}{\sqrt {-b^{2} c \,x^{2}+a^{2} c}}\right )}{\sqrt {-b c x +a c}\, \sqrt {b x +a}\, \sqrt {b^{2} c}}\right )}{2}\right )}{3}\right )}{4}\right )}{5}\right )}{6}\) | \(242\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.36, size = 89, normalized size = 0.66 \begin {gather*} \frac {5 \, a^{6} c^{\frac {5}{2}} \arcsin \left (\frac {b x}{a}\right )}{16 \, b} + \frac {5}{16} \, \sqrt {-b^{2} c x^{2} + a^{2} c} a^{4} c^{2} x + \frac {5}{24} \, {\left (-b^{2} c x^{2} + a^{2} c\right )}^{\frac {3}{2}} a^{2} c x + \frac {1}{6} \, {\left (-b^{2} c x^{2} + a^{2} c\right )}^{\frac {5}{2}} x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.31, size = 232, normalized size = 1.72 \begin {gather*} \left [\frac {15 \, a^{6} \sqrt {-c} c^{2} \log \left (2 \, b^{2} c x^{2} + 2 \, \sqrt {-b c x + a c} \sqrt {b x + a} b \sqrt {-c} x - a^{2} c\right ) + 2 \, {\left (8 \, b^{5} c^{2} x^{5} - 26 \, a^{2} b^{3} c^{2} x^{3} + 33 \, a^{4} b c^{2} x\right )} \sqrt {-b c x + a c} \sqrt {b x + a}}{96 \, b}, -\frac {15 \, a^{6} c^{\frac {5}{2}} \arctan \left (\frac {\sqrt {-b c x + a c} \sqrt {b x + a} b \sqrt {c} x}{b^{2} c x^{2} - a^{2} c}\right ) - {\left (8 \, b^{5} c^{2} x^{5} - 26 \, a^{2} b^{3} c^{2} x^{3} + 33 \, a^{4} b c^{2} x\right )} \sqrt {-b c x + a c} \sqrt {b x + a}}{48 \, b}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (- c \left (- a + b x\right )\right )^{\frac {5}{2}} \left (a + b x\right )^{\frac {5}{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 622 vs.
\(2 (109) = 218\).
time = 0.11, size = 951, normalized size = 7.04 \begin {gather*} \frac {2 a^{4} c^{2} \left (2 \left (\frac {1}{8} \sqrt {a+b x} \sqrt {a+b x}-\frac {12}{32} a\right ) \sqrt {a+b x} \sqrt {2 a c-c \left (a+b x\right )}+\frac {2 a^{2} c \ln \left |\sqrt {2 a c-c \left (a+b x\right )}-\sqrt {-c} \sqrt {a+b x}\right |}{4 \sqrt {-c}}\right )+2 a^{5} c^{2} \left (\frac {1}{2} \sqrt {a+b x} \sqrt {2 a c-c \left (a+b x\right )}-\frac {2 a c \ln \left |\sqrt {2 a c-c \left (a+b x\right )}-\sqrt {-c} \sqrt {a+b x}\right |}{2 \sqrt {-c}}\right )+2 c^{2} \left (2 \left (\left (\left (\left (\left (\frac {1}{24} \sqrt {a+b x} \sqrt {a+b x}-\frac {89994240}{348364800} a\right ) \sqrt {a+b x} \sqrt {a+b x}+\frac {232968960}{348364800} a^{2}\right ) \sqrt {a+b x} \sqrt {a+b x}-\frac {327317760}{348364800} a^{3}\right ) \sqrt {a+b x} \sqrt {a+b x}+\frac {270345600}{348364800} a^{4}\right ) \sqrt {a+b x} \sqrt {a+b x}-\frac {146966400}{348364800} a^{5}\right ) \sqrt {a+b x} \sqrt {2 a c-c \left (a+b x\right )}+\frac {10 a^{6} c \ln \left |\sqrt {2 a c-c \left (a+b x\right )}-\sqrt {-c} \sqrt {a+b x}\right |}{32 \sqrt {-c}}\right )+2 a c^{2} \left (2 \left (\left (\left (\left (\frac {1}{20} \sqrt {a+b x} \sqrt {a+b x}-\frac {211680}{806400} a\right ) \sqrt {a+b x} \sqrt {a+b x}+\frac {446880}{806400} a^{2}\right ) \sqrt {a+b x} \sqrt {a+b x}-\frac {495600}{806400} a^{3}\right ) \sqrt {a+b x} \sqrt {a+b x}+\frac {327600}{806400} a^{4}\right ) \sqrt {a+b x} \sqrt {2 a c-c \left (a+b x\right )}-\frac {6 a^{5} c \ln \left |\sqrt {2 a c-c \left (a+b x\right )}-\sqrt {-c} \sqrt {a+b x}\right |}{16 \sqrt {-c}}\right )-4 a^{2} c^{2} \left (2 \left (\left (\left (\frac {1}{16} \sqrt {a+b x} \sqrt {a+b x}-\frac {24960}{92160} a\right ) \sqrt {a+b x} \sqrt {a+b x}+\frac {41280}{92160} a^{2}\right ) \sqrt {a+b x} \sqrt {a+b x}-\frac {37440}{92160} a^{3}\right ) \sqrt {a+b x} \sqrt {2 a c-c \left (a+b x\right )}+\frac {6 a^{4} c \ln \left |\sqrt {2 a c-c \left (a+b x\right )}-\sqrt {-c} \sqrt {a+b x}\right |}{16 \sqrt {-c}}\right )-4 a^{3} c^{2} \left (2 \left (\left (\frac {1}{12} \sqrt {a+b x} \sqrt {a+b x}-\frac {84}{288} a\right ) \sqrt {a+b x} \sqrt {a+b x}+\frac {108}{288} a^{2}\right ) \sqrt {a+b x} \sqrt {2 a c-c \left (a+b x\right )}-\frac {2 a^{3} c \ln \left |\sqrt {2 a c-c \left (a+b x\right )}-\sqrt {-c} \sqrt {a+b x}\right |}{4 \sqrt {-c}}\right )}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\left (a\,c-b\,c\,x\right )}^{5/2}\,{\left (a+b\,x\right )}^{5/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________